var student = require('./student');
var teacher = require('./teacher');
teacher.add(teacher);
function add(teacherName, students) {
    teacher.add(teacherName);

    students.forEach(function (item, index) {
        student.add(item);
    });
}

exports.add = add; // 传统的模块实例

// module.exports = add;
// 挂载属性和方法，优先级高于exports
